﻿using Quartz;
using Quartz.Spi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Stardance.ProgramTimer
{
    public class BasicFactory : IJobFactory
    {
        public IJob NewJob(TriggerFiredBundle bundle, IScheduler scheduler)
        {
            switch (bundle.JobDetail.Key.Name)
            {
                case "recordJob":
                    return RecordJob.Instance;
                default:
                    return null;
            }

        }

        public void ReturnJob(IJob job)
        {
            throw new NotImplementedException();
        }
    }
}
